You can validate your CloudFormation template to catch syntax and semantic errors, before CloudFormation creates any resources
CloudFormation Console automatically validates the template after you specify input parameters
AWS CLI CloudFormation validate-template command
cfn-lint: https://github.com/aws-cloudformation/cfn-lint
Validate CloudFormation templates JSON/YAML against resource specification (properties and their values)
cfn-guard: https://github.com/aws-cloudformation/cloudformation-guard
Validate CloudFormation templates for compliance to organization policy guidelines
You define your own rules
Example: ensure users always create encrypted S3 buckets
Can be used as part of CI/CD pipeline